/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"B81C91D7-D346-43C6-A4CE-FCAE3F3ECB45"}
 */
function mostrarAyuda(event) {
	if (globals.gIdFormActual)
	{
		forms.pantalla_ayuda.controller.loadRecords(globals.gIdFormActual)
		var $post = ''
		if (application.getApplicationType() == APPLICATION_TYPES.WEB_CLIENT)
			$post = '_web'
		plugins.window.showFormPopup(elements['btn_info'+$post],forms.pantalla_ayuda,globals,'VACIO')
	}
	else
	{
		globals.DIALOGS.showWarningDialog('Aviso','Debe abrir una pantalla para la información','OK')
	}
}

/**
 * Perform the element right-click action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"4174DC3D-1EF0-429F-B01C-1D6ABF322D7B"}
 */
function onRightClickVolver(event) {
	var $ds = databaseManager.createEmptyDataSet(0,['id'])
	
	var $limite = 5
	var $total = globals.ar.length -1
	if ($total <= 5)
		$limite = $total -1
	for (var i = 1 ; i <= $limite ; i++)
	{
		$ds.addRow([globals.ar[$total - i]])
	}
	forms.historia_popup.controller.loadRecords($ds)
	var $elem = elements.btn_volver
	if (application.getApplicationType() == APPLICATION_TYPES.WEB_CLIENT)
	{
		$elem = elements.btn_volver_web
	}
	plugins.window.showFormPopup($elem,forms.historia_popup,globals,'VACIO',270,110)
}
